package com.example.projectgamefinal1;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends Activity {
	public final static String EXTRA_MESSAGE="111";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	public void ArkitekturPage(View view)
	{
		Intent intent = new Intent(this, Arkitektur.class);
		intent.putExtra(null, 1);
		startActivity(intent);
	}
	
	public void Brugere_funktionPage(View view)
	{
		Intent intent = new Intent(this, Brugere_funktion.class);
		intent.putExtra(EXTRA_MESSAGE, 2);
		startActivity(intent);
	}
	
	public void EnergidesignPage(View view)
	{
		Intent intent = new Intent(this, Energidesign.class);
		intent.putExtra(EXTRA_MESSAGE, 3);
		startActivity(intent);
	}
	
	public void IndustialiseringPage(View view)
	{
		Intent intent = new Intent(this, Industialisering.class);
		intent.putExtra(EXTRA_MESSAGE, 4);
		startActivity(intent);
	}
	
	public void OkonomiPage(View view)
	{
		Intent intent = new Intent(this, Okonomi.class);
		intent.putExtra(EXTRA_MESSAGE, 5);
		startActivity(intent);
	}
	
	public void Tekniske_installPage(View view)
	{
		Intent intent = new Intent(this, Tekniske_install.class);
		intent.putExtra(EXTRA_MESSAGE, 6);
		startActivity(intent);
	}
	
	public void StedetPage(View view)
	{
		Intent intent = new Intent(this, Stedet.class);
		intent.putExtra(EXTRA_MESSAGE,7);
		startActivity(intent);
	}

	public void StabilitetPage(View view)
	{
		Intent intent = new Intent(this, Stabilitet.class);
		intent.putExtra(EXTRA_MESSAGE, 8);
		startActivity(intent);
	}
	
	
}

